home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / lockdir / RCS / lockdir.man,v < prev   
Encoding:
Text File  |  1990-03-01  |  1.4 KB  |  60 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     90.02.28.21.25.22;  author douglis;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @man page for lockdir
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @'\" Copyright 1990 Regents of the University of California
  27. '\" Permission to use, copy, modify, and distribute this
  28. '\" documentation for any purpose and without fee is hereby
  29. '\" granted, provided that this notice appears in all copies.
  30. '\" The University of California makes no representations about
  31. '\" the suitability of this material for any purpose.  It is
  32. '\" provided "as is" without express or implied warranty.
  33. '\" 
  34. '\" $Header: /sprite/lib/forms/RCS/cmd.man,v 1.2 90/02/20 17:11:01 douglis Exp $ SPRITE (Berkeley)
  35. '/" 
  36. .so \*(]ltmac.sprite
  37. .HS lockdir cmds
  38. .BS
  39. '\" Note:  do not modify the .SH NAME line immediately below!
  40. .SH NAME
  41. lockdir \- Lock a directory atomically
  42. .SH SYNOPSIS
  43. \fBlockdir\fR [\fIfilename\fR]
  44. .SH OPTIONS
  45. .IP "\fIfilename\fR" 15
  46. Name of file to use for the lock (defaults to \fB./LOCK\fP).
  47. .BE
  48.  
  49. .SH DESCRIPTION
  50. .PP
  51. This is a simple program to acquire a lock on a directory. It waits
  52. for
  53. up to 10 minutes before giving up.  It exits 0 if the lock was
  54. acquired and non-zero otherwise.  If no argument is given, it assumes
  55. it is in the proper directory and just uses the file \fBLOCK\fB in the
  56. current directory.  
  57. .SH KEYWORDS
  58. lock, atomic, 
  59. @
  60.